package service.impl;

import entity.Singer;
import mapper.SingerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.SingerService;

import java.util.List;
@Service
public class SingerServiceImpl implements SingerService {
    @Autowired
    private SingerMapper singerMapper;

    @Override
    public List<Singer> getAllSinger() {
        return singerMapper.getAllSinger();
    }

    @Override
    public Singer getSingerById(String id) {
        return singerMapper.getSingerById(id);
    }

    @Override
    public int updateSinger(Singer singer) {
        return singerMapper.updateSinger(singer);
    }

    @Override
    public int addSinger(Singer singer) {
        return singerMapper.addSinger(singer);
    }

    @Override
    public int deleteSingerById(String id) {
        return singerMapper.deleteSingerById(id);
    }
}
